Create Template
POST {{baseURL}}api/v1/template
Description
To create a template
Sample Request Body
{
"serviceId": "9a7ade80-98d5-11ee-b9d1-0242ac120005",
"templateName": "search-002",
"type": "SEARCH",
"validationRule": {
"sku": "prod-001",
"productname": "milk",
"cost": "200.00",
"category": "groceries",
"manufacturer": "dano"
},
"config": {
"searchBy": [
"sku",
"category"
],
"hideFor": [
"id",
"cost"
]
}
}
LANGUAGE
CURL REQUEST
curl --request POST \
--url {{baseURL}}api/v1/template \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!